<%--
    Document   : dadosReserva
    Created on : 11/10/2011, 13:25:58
    Author     : Neto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.List, java.util.Iterator, javax.servlet.http.HttpSession"%>
<%@page import="model.Reserva, model.Usuario, model.Voo"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="style.css" type="text/css" media="screen">
        <title>DADOS DA RESERVA</title>
    </head>

    <jsp:include page="topoadmin.jsp"/>
    <body >

        <div id="content">
             <table style="text-align: left; width: 80%;" border="1" cellpadding="2" cellspacing="2" align="center">
            <tbody>
                <tr>
                    <td style="vertical-align: top; text-align: center;"><b>Numero da Reserva</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>ID do usuario</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>Nome</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>Local de Origem</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>Local de Destino</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>Data</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>Hora</b></td>
                </tr>
                <%
                    List dadosReserva = (List)request.getAttribute("dadosReserva");
                    for (Iterator i = dadosReserva.iterator(); i.hasNext();) {
                    Reserva r = (Reserva)i.next();
                %>
                <tr>
                    <td style="vertical-align: top; text-align: center;"><%= r.getNumVooReserva() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getIdUser() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getNome() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getLocalOrigem() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getLocalDestino() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getData() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getHora() %></td>
                </tr>
                <%
                    }
                %>
            </tbody>
            </table>
        </div>
    </body>
    <jsp:include page="rodape.jsp"/>

</html>
